﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <StreamGeometry x:Key="next_button_pathdata">
        F1M3.918,11.424C3.918,15.42 2.99,19.203 1.335,22.578 1.335,22.578 44.286,22.578 44.286,22.578 49.286,22.578 53.34,17.86 53.34,12.04 53.34,6.22 49.286,1.502 44.286,1.502 44.286,1.502 1.896,1.502 1.896,1.502 3.197,4.556 3.918,7.907 3.918,11.424z
    </StreamGeometry>
    <StreamGeometry x:Key="next_icon_pathdata">
        F1M22.293,8.75C21.769,9.08 13.205,14.379 12.585,14.747 12.131,15.017 11.535,14.719 11.535,14.105 11.535,13.828 11.535,11.518 11.535,8.997 9.765,10.097 2.783,14.416 2.224,14.747 1.77,15.017 1.175,14.719 1.175,14.105 1.175,13.482 1.175,2.543 1.175,2.113 1.175,1.555 1.714,1.141 2.246,1.467 2.634,1.704 9.704,6.073 11.535,7.205 11.535,4.644 11.535,2.307 11.535,2.113 11.535,1.555 12.074,1.141 12.607,1.467 13.034,1.728 21.565,7 22.293,7.451 22.772,7.747 22.764,8.453 22.293,8.75z
    </StreamGeometry>

    <LinearGradientBrush x:Key="HighlightBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#dee3de" Offset="0"/>
        <GradientStop Color="#7Fb5bbb5" Offset="0.5"/>
        <GradientStop Color="#11ccd2cc" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="HighlightOverBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="#7Fcccccc" Offset="0.5"/>
        <GradientStop Color="#33ccd2cc" Offset="1"/>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="HighlightPressBrush" StartPoint="0,1" EndPoint="0,0">
        <GradientStop Color="#dee3de" Offset="0"/>
        <GradientStop Color="#7Fb5bbb5" Offset="0.5"/>
        <GradientStop Color="#7Fd1d8d1" Offset="0.5"/>
        <GradientStop Color="#33ccd2cc" Offset="1"/>
    </LinearGradientBrush>

    <ControlTemplate x:Key="next_button_template" TargetType="{x:Type Button}">
        <Grid>
            <Path Data="{StaticResource next_button_pathdata}" Stroke="#66000000"  Stretch="Fill"/>
            <Path Name="Highlight" Data="{StaticResource next_button_pathdata}" Stroke="#BFdfe3df" Margin="1" Stretch="Fill" Fill="{StaticResource HighlightBrush}"/>
            
            <Path Data="{StaticResource next_icon_pathdata}" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#33000000" Margin="0,-1,0,0">
                <Path.Fill>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="White" Offset="0.45"/>
                        <GradientStop Color="#afafaf" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="Highlight" Property="Fill" Value="{StaticResource HighlightOverBrush}" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="Highlight" Property="Fill" Value="{StaticResource HighlightPressBrush}" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="Highlight" Property="Fill" Value="{x:Null}" />
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
</ResourceDictionary>